//
//  BLHUD.h
//  MReader
//
//  Created by 乔小乔 on 2020/4/12.
//  Copyright © 2020 Qi Liu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MBProgressHUD.h"

NS_ASSUME_NONNULL_BEGIN

typedef void(^MRAlertConfirmHandle)(void);
typedef void(^MRAlertCancleHandle)(void);

#define HUD [BLHUD shareHud]

@interface BLHUD : NSObject
@property(nonatomic,strong)MBProgressHUD *hud;

+(BLHUD *)shareHud;

//显示菊花加载
-(void)showLoadingView;

//显示菊花加载
-(void)showLoadingTextView:(NSString *)text;

//隐藏菊花加载
-(void)hideLoadingView;
//提示语
-(void)showtip:(NSString*)mes;

-(void)showtip:(NSString*)mes time:(NSInteger)integer;
/**
 指定View 上显示提示语

 @param view view
 @param mes message
 */
-(void)showtipInView:(UIView *)view message:(NSString*)mes;

- (void)showAlertWithTitle:(NSString *)title
                   message:(NSString *)message
              showOtherBtn:(BOOL)show
               confirmTile:(NSString *)confirmTitle
                otherTitle:(NSString *)otherTitle
             confirmHandle:(MRAlertConfirmHandle)confirmHandle
              cancleHandle:(MRAlertCancleHandle)cancleHandle;


@end

NS_ASSUME_NONNULL_END
